package com.ehsy.statement;

import com.ehsy.common.ResponseVo;
import com.ehsy.model.UserInfo;
import com.ehsy.service.GzipService;
import com.ehsy.service.UrlParamService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author YanZhen_Li
 * @version 1.0
 * @title Url参数
 * @description
 * @create 2024/6/17 15:22
 */
@SpringBootTest
public class A14Gzip解压 {
    @Resource
    GzipService service;

    /**
     * ! 我的所有请求已经Gzip压缩了，但是无法实验出不解压的方式，怀疑可能是因为我传输的请求头中包含了gzip所以会自动解压
     */
    @Test
    public void testUrl1() {
        ResponseVo<Object> test1 = service.send1("a", "b");
        UserInfo userInfo = new UserInfo("张三", "18", "男", "上海", "13812341234", "123@qq.com", "123456");
        ResponseVo<UserInfo> test6 = service.send6(userInfo);

        System.out.println(test1.getData());
        System.out.println(test6.getData());
    }
}
